<h1>Nette\Environment variables test</h1>

<pre>
Getting variable 'foo':
NULL

Getting variable 'tempDir':
InvalidStateException: Unknown environment variable 'appDir'.

Defining constant 'APP_DIR':
Getting variable 'appDir':
string(6) "/myApp"

Getting variable 'tempDir' #2:
string(11) "/myApp/temp"

Setting variable 'test'...
Getting variable 'test':
string(11) "/myApp/test"

Getting variables:
array(11) {
   "encoding" => string(5) "UTF-8"
   "lang" => string(2) "en"
   "cacheBase" => string(17) "/myApp/temp/cache"
   "tempDir" => string(11) "/myApp/temp"
   "logDir" => string(10) "/myApp/log"
   "templatesDir" => string(16) "/myApp/templates"
   "presentersDir" => string(17) "/myApp/presenters"
   "componentsDir" => string(17) "/myApp/components"
   "modelsDir" => string(13) "/myApp/models"
   "appDir" => string(6) "/myApp"
   "test" => string(11) "/myApp/test"
}

Setting circular variables...
Getting circular variable:
InvalidStateException: Circular reference detected for variables: foo, foobar, bar.

